package com.bl.andr.utillib;

public class DoubleClickUtil {
    /**
     * Prevent continuous click, jump two pages
     */
    private static long lastClickTime;

    // 可以修改
    private final static long TIME = 1000;

    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime < TIME) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
